package yzx.firstletter.appList;

import android.graphics.Canvas;
import android.graphics.Rect;
import android.support.v7.widget.RecyclerView;
import android.view.View;

import yzx.common.util.ScreenUtil;

public class AppListDecoration extends RecyclerView.ItemDecoration{

    @Override
    public void onDraw(Canvas c, RecyclerView parent, RecyclerView.State state) {
        super.onDraw(c, parent, state);
    }

    @Override
    public void getItemOffsets(Rect outRect, View view, RecyclerView parent, RecyclerView.State state) {
        int lr = ScreenUtil.dp2px(view.getContext(), 13);
        int tb = ScreenUtil.dp2px(view.getContext(), 4);
        outRect.set(lr, tb, lr, tb);
    }

}
